package com.carey.yygh.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carey.yygh.common.result.Result;
import com.carey.yygh.model.user.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carey.yygh.vo.user.LoginVo;
import com.carey.yygh.vo.user.UserAuthVo;
import com.carey.yygh.vo.user.UserInfoQueryVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
* @author carey-
* @description 针对表【user_info(用户表)】的数据库操作Service
* @createDate 2022-05-16 13:40:27
*/

public interface UserInfoService extends IService<UserInfo> {

    Map<String, Object> login(LoginVo loginVo);


    void userAuth(Long userId, UserAuthVo userAuthVo);

    Page<UserInfo> selectPage(Page<UserInfo> userInfoPage, UserInfoQueryVo userInfoQueryVo);

    void lock(Long userId, Integer status);

    Map<String, Object> show(Long userId);

    void approval(Long id, Integer authStatus);
}
